<?php
class InfoModel extends Model{
	//表单数据验证
	protected $_validate=array(
	array('title','require','必须输入标题！',1,'regex',3),
	);
	
	
	//自动填充
	protected $_auto=array(
//array(填充字段(数据库字段名)，填充内容，填充条件，附加规则
	array('publishtime','getDate',1,'callback'),
	);
	
	function getDate(){
		return date('Y-m-d H:i:s');
	}
	
	
	
	//子段映射
	//protected $_map=array();
	
	
}